package com.iris.live.services.data.models;

import javax.persistence.*;
import java.util.Date;

/**
 * 汽车加配详情
 */
@Entity
@Table(name = "custom_car_configure_detail", schema = "", catalog = "")
public class CustomCarConfigureDetailModel {

    private Integer id;//ID
    private Integer customCarId;//配置基本ID
    private Integer boutiqueId;//精品ID
    private Float boutiquePrice;//金牌单价
    private Integer boutiqueNum;//精品个数
    private String boutiqueName;//精品名称
    private Integer storeId;//库存ID（冗余字段方便以后扩展查询显示）
    private String customName;//自定义名称（冗余字段方便以后扩展查询显示）
    private Float discount;//折扣率
    private Float receivable;//应收价格
    private Float netReceipts;//实际价格
    private Integer status;//是否生效1是0否
    private String productNum;//产品编号
    private Integer classifyId;
    private Integer typeId;
    private Date createdTime;//创建时间

    public CustomCarConfigureDetailModel() {
    }

    public CustomCarConfigureDetailModel(Integer customCarId, Integer boutiqueId, Float boutiquePrice, Integer boutiqueNum, Integer storeId, String customName, Float discount, Float receivable, Float netReceipts, Integer status, Date createdTime) {
        this.customCarId = customCarId;
        this.boutiqueId = boutiqueId;
        this.boutiquePrice = boutiquePrice;
        this.boutiqueNum = boutiqueNum;
        this.storeId = storeId;
        this.customName = customName;
        this.discount = discount;
        this.receivable = receivable;
        this.netReceipts = netReceipts;
        this.status = status;
        this.createdTime = createdTime;
    }

    public CustomCarConfigureDetailModel(Integer boutiqueId, Float boutiquePrice, Integer boutiqueNum, String customName, Float discount) {
        this.boutiqueId = boutiqueId;
        this.boutiquePrice = boutiquePrice;
        this.boutiqueNum = boutiqueNum;
        this.customName = customName;
        this.discount = discount;
    }

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Basic
    @Column(name = "custom_car_id")
    public Integer getCustomCarId() {
        return customCarId;
    }

    public void setCustomCarId(Integer customCarId) {
        this.customCarId = customCarId;
    }

    @Basic
    @Column(name = "boutique_id")
    public Integer getBoutiqueId() {
        return boutiqueId;
    }

    public void setBoutiqueId(Integer boutiqueId) {
        this.boutiqueId = boutiqueId;
    }

    @Basic
    @Column(name = "boutique_price")
    public Float getBoutiquePrice() {
        return boutiquePrice;
    }

    public void setBoutiquePrice(Float boutiquePrice) {
        this.boutiquePrice = boutiquePrice;
    }

    @Basic
    @Column(name = "boutique_num")
    public Integer getBoutiqueNum() {
        return boutiqueNum;
    }

    public void setBoutiqueNum(Integer boutiqueNum) {
        this.boutiqueNum = boutiqueNum;
    }

    @Basic
    @Column(name = "store_id")
    public Integer getStoreId() {
        return storeId;
    }

    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }

    @Basic
    @Column(name = "custom_name")
    public String getCustomName() {
        return customName;
    }

    public void setCustomName(String customName) {
        this.customName = customName;
    }

    @Basic
    @Column(name = "discount")
    public Float getDiscount() {
        return discount;
    }

    public void setDiscount(Float discount) {
        this.discount = discount;
    }

    @Basic
    @Column(name = "receivable")
    public Float getReceivable() {
        return receivable;
    }

    public void setReceivable(Float receivable) {
        this.receivable = receivable;
    }

    @Basic
    @Column(name = "net_receipts")
    public Float getNetReceipts() {
        return netReceipts;
    }

    public void setNetReceipts(Float netReceipts) {
        this.netReceipts = netReceipts;
    }

    @Basic
    @Column(name = "status")
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Basic
    @Column(name = "created_time")
    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    @Basic
    @Column(name = "product_num")
    public String getProductNum() {
        return productNum;
    }

    public void setProductNum(String productNum) {
        this.productNum = productNum;
    }

    @Basic
    @Column(name = "boutique_name")
    public String getBoutiqueName() {
        return boutiqueName;
    }

    @Basic
    @Column(name = "classify_id")
    public Integer getClassifyId() {
        return classifyId;
    }

    public void setClassifyId(Integer classifyId) {
        this.classifyId = classifyId;
    }

    @Basic
    @Column(name = "type_id")
    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public void setBoutiqueName(String boutiqueName) {
        this.boutiqueName = boutiqueName;
    }
}
